import 'package:base/common/init/init_handle.dart';

class EnvHandle extends InitHandle<EnvInfo> {

  late EnvInfo _data;

  @override
  EnvInfo? get data => _data;

  @override
  Future<EnvInfo> init() async {
    _data = EnvInfo();
    _data.isProd = const bool.fromEnvironment("dart.vm.product");
    return _data;
  }

}

class EnvInfo {
  // 是否是生产环境
  bool isProd = false;
}